14e4e118969fb9b278ad1f0ad64ebeba192c8270,WWIDesigner/src/main/com/wwidesigner/optimization/BorePositionObjectiveFunction.java,BorePositionObjectiveFunction,setConstraints,#,88

Before Change


		int pointNr = borePointNr(0);
		name = "Position of bore point " + String.valueOf(pointNr)
				+ " (bottom)";
		constraints.addConstraint(new Constraint(CONSTR_CAT,
				name, ConstraintType.DIMENSIONAL));
		for (dimension = 1; dimension < nrDimensions; ++dimension)
		{
			pointNr = borePointNr(dimension);

After Change


		String name;
		int dimension = 0;
		int pointNr;
		if (unchangedBottomPoint == 0)
		{
			pointNr = borePointNr(0);
			name = "Position of bore point " + String.valueOf(pointNr)
					+ " (bottom)";
			constraints.addConstraint(new Constraint(CONSTR_CAT,
					name, ConstraintType.DIMENSIONAL));
			dimension = 1;
		}
		for (; dimension < nrDimensions; ++dimension)